<%@ page language="java" import="java.util.*" import="com.gxuwz.medical.domain.baoxiao.*" import="com.gxuwz.medical.domain.person.*" import="com.gxuwz.medical.vo.*" import="com.gxuwz.medical.dao.*"  pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String msg= (String)request.getAttribute("msg");
%>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title></title>
<link rel="stylesheet" href="/medical/css/pintuer.css">
<link rel="stylesheet" href="/medical/css/admin.css">
<script src="/medical/js/jquery-1.4.4.min.js"></script>
<script src="/medical/js/pintuer.js"></script>
<script src="/medical/js/my.js"></script>
<script>
$(function(){
	var message = "<%=msg%>";
	if (message!="null"){
		alert(message);
	}
	
	var pageright = new Array();
	pageright[0]='F020501';
	pageright[1]='F020502';
	pageright[2]='F020503';
	autoShow(pageright);
});
//单个删除
function del(proveno){
	if(confirm("您确定要删除吗?")){
		window.location.href="system/ProveServlet?method=del&proveno="+proveno;
	}
}

</script>
</head>
<body> 
<form method="post" action="" id="listform">
  <div class="panel admin-panel">
	<div class="panel-head"><strong class="icon-reorder"> 内容列表</strong> <a href="" style="float:right; display:none;">添加字段</a></div>
    <div class="padding border-bottom">
      <ul class="search" style="padding-left:10px;">
        <li> <a name="F020502" class="button border-main icon-plus-square-o" href="page/baoxiao/baoxiao_set.jsp">报销政策设置</a> </li>  
        <li> <a name="F020501" class="button border-main icon-plus-square-o" href="system/BaoxiaoServlet?method=swich">慢性病报销入口</a> </li>      
      </ul>
    </div>
  
    <table name="F020503" class="table table-hover text-center">
      <tr>
       <th width="100" style="text-align:left; padding-left:20px;">序号</th>
        <th>报销编号</th>
        <th>身份证号</th>
        <th>姓名</th>
        <th>慢性病名称</th>
        <th>实际报销金额</th>
        <th>报销时间</th>

      </tr>
      <volist name="list" id="vo">
    	<%	
    		PageBean pageBean = new PageBean();
    		pageBean = (PageBean)request.getAttribute("pageBean");
    		List list = new ArrayList();
    		list = pageBean.getPageData();
    		if(!list.isEmpty()){
    			for(int i=0;i<list.size();i++){
    				BaoXiao bx = new BaoXiao();
    				bx=(BaoXiao)list.get(i);
    				Person person = new Person();
    				person = new PersonDao().queryByIdcard(bx.getIdcard());
    				%>
  		<tr>
  		<td style="text-align:left; padding-left:20px;"><input type="checkbox" name="id[]" value="" />
  		<%=i+1 %></td>
          <td><%=bx.getBaoxiaono() %></td>
          <td><%=bx.getIdcard() %></td>
          <td><%=person.getFullname()%></td>
          <td><%=bx.getIllname() %></td>
          <td><%=bx.getRelmoney() %></td>
          <td><%=bx.getBaoxiaotime() %></td>

        </tr>  				
    				<% 
    			}
    		}
    	 %>    
      
      <tr>
        <td colspan="8">
        <div class="pagelist">
        <span>当前页：<%=pageBean.getCurrentpage() %>,共<%=pageBean.getTotalPage() %>页</span>
        <%if(!pageBean.isFirst()) {%>
        <a href="/system/ProveServlet?page=1&method=list">首页</a> 
        <%} %>
        <%if(pageBean.isHasPrev()){ %>
         <a href="/system/ProveServlet?page=<%=pageBean.getCurrentpage()-1%>&method=list">上一页</a> 
        <%}%>
          <%if(pageBean.isHasNext()){ %>
          <a href="/system/ProveServlet?page=<%=pageBean.getCurrentpage()+1%>&method=list">下一页</a>
         <%}%>
        
         <%if(!pageBean.isLast()) {%>
         <a href="/system/ProveServlet?page=<%=pageBean.getTotalPage()%>&method=list">尾页</a> 
         <%} %> 
         </div>
         </td>
      </tr>
    </table>
  </div>
</form>


</body>
</html>